<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "mt_meeting".
 *
 * @property integer $id
 * @property integer $parentid
 * @property string $title
 * @property integer $province
 * @property integer $city
 * @property integer $country
 * @property string $address
 * @property string $detail
 * @property string $logo
 * @property integer $meeting_type
 * @property string $start_time
 * @property string $end_time
 * @property integer $created_at
 * @property integer $updated_at
 * @property string $price
 * @property integer $meta
 */
class Meeting extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'mt_meeting';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['parentid', 'province', 'city', 'country', 'meeting_type', 'created_at', 'updated_at', 'meta'], 'integer'],
            [['title', 'province', 'city', 'address', 'start_time', 'end_time', 'created_at'], 'required'],
            [['detail'], 'string'],
            [['start_time', 'end_time'], 'safe'],
            [['price'], 'number'],
            [['title', 'address'], 'string', 'max' => 100],
            [['logo'], 'string', 'max' => 128],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'parentid' => 'Parentid',
            'title' => 'Title',
            'province' => 'Province',
            'city' => 'City',
            'country' => 'Country',
            'address' => 'Address',
            'detail' => 'Detail',
            'logo' => 'Logo',
            'meeting_type' => 'Meeting Type',
            'start_time' => 'Start Time',
            'end_time' => 'End Time',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
            'price' => 'Price',
            'meta' => 'Meta',
        ];
    }
}
